<%@ taglib prefix="s" uri="/struts-tags" %>
<html>
    <head>
        <title>Check out</title>
        <style> .errorMessage { color:red; }</style> 
    </head>
    <body>
        <div id="global" style="width:350px">
            Welcome ${sessionScope.user} !
            <br>
            <h3>Please enter the amount and your credit card details</h3>
            <s:form action="paymentAction">
                <s:token/>
                <s:textfield name="payment.amount" label="Amount"/>
                <s:select name="payment.creditCardType" label="Credit Card" list="#@java.util.HashMap@{'1':'Visa','2':'Mastercard','3':'American Express'}"/>
                <s:textfield name="payment.nameOnCard" label="Name on Credit Card"/>
                <s:textfield name="payment.number" label="Credit Card Number"/>
                <s:textfield name="payment.expiryDate" label="Expiry Date (mm/yy)"/>
                <s:submit/>
             </s:form>
        </div>
    </body>
</html>